<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>登录 — 突唯阿 — 领先的响应式网站自助建设平台</title>
    <meta content="tuweia.cn" name="author">
    <meta content="tuweia.cn" name="Copyright">
    <meta content="突唯阿，全球领先的响应式网站可视化建设平台，让用户免费创建电脑、手机、平板通用的响应式网站，百度搜索靠前，可接入到微博、微信以及更多APP。" name="description">
    <meta content="响应式网站,手机网站,微信网站，微网站，微商城，微店，电脑网站,手机网站建设,网站建设,行业网站,门户网站,企业网站,网页设计,网站,网站服务,网站设计,网站开发,网站运营,网站策划 ,页面设计,数据库开发,程序开发,网站测试,网站维护,网站推广,SEO优化," name="keywords">
    <meta name="viewport" id="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <link rel="shortcut icon" href="../../static/icon/favicon.ico">
    <link rel="apple-touch-icon" sizes="57x57" href="../../static/icon/apple-touch-icon-57.png" />
    <link rel="apple-touch-icon" sizes="72x72" href="../../static/icon/apple-touch-icon-72.png" />
    <link rel="apple-touch-icon" sizes="114x114" href="../../static/icon/apple-touch-icon-114.png" />
    <link href="../../static/css/web.css" rel="stylesheet" type="text/css">
    <link href="../../static/css/tuweia.css" rel="stylesheet" type="text/css">
    <link href="../../static/css/icon.css" rel="stylesheet" type="text/css">
    <script src="http://1251132871.cdn.myqcloud.com/1251132871/js/jquery-1.9.1.js"></script>
    <script src="http://1251132871.cdn.myqcloud.com/1251132871/js/jquery.json-2.2.js"></script>
    <script src="http://1251132871.cdn.myqcloud.com/1251132871/js/common.js"></script>
    <script type="text/javascript">
        var click = 'click',
                supportTouch = false;
        if ("ontouchend" in document) {
            if (navigator.userAgent.indexOf('QQ') < 0) {
                document.write('<script src="http://1251132871.cdn.myqcloud.com/1251132871/js/vMouse.js"><\/script>');
                click = 'vclick';
            }
            ;
            supportTouch = true;
        }
        ;
        if ($.browser.msie && $.browser.version < 9) {
            document.write('<script src="http://1251132871.cdn.myqcloud.com/1251132871/js/modernizr.js"><\/script>');
        }
        ;

        var imgErrorSrc = './static/images/imgError_pic.png',
                rpcJS = './static/js/phprpc.js',
                staticPath = '/static',
                phprpcURL = '/?c=homeRpc',
                ajaxURL = '/?c=homeAjax';
    </script>
    <script type="text/javascript">
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "//hm.baidu.com/hm.js?6e73988044da76e283deb3d1e7307cd4";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
    <script type="text/javascript" name="baidu-tc-cerfication" src="http://apps.bdimg.com/cloudaapi/lightapp.js#ce7adabe4bb9564c839675ba77458621"></script>
    <script type="text/javascript">window.bd && bd._qdc && bd._qdc.init({ app_id: '89acf8eafe11735547295534' });</script>
</head>
<body>
    <div class="kPad">
        <div class="loginPage" id="loginPage">
            <div class="tc"><a href="http://sitemate.cn/c/home/" class="logoA"></a></div>
            <div class="loginBox rmtS">
                <form name="myform" id="myform">
                    <div class="loginTitle">登录突唯阿</div>
                    <div class="loginList">
                        <div class="loginListRow">
                            <input type="text" placeholder="手机/邮箱号码" name="account" class="inputText inputBlock" />
                        </div>
                        <div class="loginListRow">
                            <input type="password" placeholder="密码" name="password" class="inputText inputBlock" />
                        </div>
                        <div class="loginListRow" role="vcodeBox" style="display: none;">
                            <input type="text" placeholder="验证码" name="vcode" class="inputText inputBlock" />
                            <p class="loginFromNotes pt5">
                                <img role="vcodeImage" />&nbsp;&nbsp;
                                <a href="javascript:void(0);" role="changeVcode">看不清，换一张</a>
                            </p>
                        </div>
                        <div class="clearfix pt10">
                            <a href="http://sitemate.cn/c/home/a/forget" class="fr ct_3">忘记密码？</a>
                            <label class="checkbox">
                                <input type="checkbox" name="autoSignin" value="1">下次自动登录</label>
                        </div>
                        <input type="submit" style="display: none;" />
                        <div class="pt20"><a href="javascript:void(0);" role="submitBtn" class="btn block blue">登 录</a></div>
                    </div>
                    <div class="pt20 tc"><a href="http://sitemate.cn/c/home/a/signup" class="ct_6 underline">没有突唯阿账号?立即注册</a></div>
                    <div class="loginTopLine mt20" style="display: none;"><span>合作账号登录</span></div>
                    <div class="p20 tc" style="display: none;">
                        <a href="http://sitemate.cn/c/developer/a/qq_login" data-type="qq">
                            <img src="./static/images/l_r2_c3.gif" /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="http://sitemate.cn/c/developer/a/weibo_login" data-type="weibo">
                            <img src="./static/images/l_r1_c1.gif" /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="http://sitemate.cn/c/developer/a/alipay_login" data-type="alipay">
                            <img src="./static/images/l_r2_c5.gif" /></a>
                    </div>
                    <div class="pt20 tc"></div>
                </form>
            </div>
        </div>
        <div class="h6 ct_2 tc">© 2014 tuweia.cn 沪ICP备13031870号-1</div>
        <br>
    </div>
    <script type="text/javascript">
        ;
        (function ($) {
            var vcodeURL = '/?c=site&a=vcode&',
                    container = $('#loginPage'),
                    signinBack = $.cookie('signinBack') || $.cookie('php_signinBack') || 'http://tuweia.cn/c/home/a/account',
                    remberAccount = $.cookie('remberAccount') || '',
                    remberPassword = $.cookie('remberPassword') || '',
                    remberPwd = $.cookie('remberPwd') || '',
                    needVcode = $.cookie('needVcode') || '',
                    form = $('form', container),
                    changeVcode = function () {
                        $('img[role="vcodeImage"]', container).attr("src", vcodeURL + Math.random());
                    },
                    onSucess = function () {
                        $.cookie('signinBack', '', { path: '/' });
                        $.cookie('php_signinBack', '', { path: '/' });
                        window.location.href = signinBack;
                    },
                    formSubmit = function () {
                        var value = getFormValue(form),
                                msg = '';
                        if (!isEmail(value.account) && !isPhone(value.account)) {
                            msg = '账号应为正确的email地址或手机号码';
                            $('input[name="account"]', form).errorInput();
                        } else if (!remberPwd && (value.password.length < 5 || value.password.length > 21)) {
                            msg = '密码应为6-21位字符';
                            $('input[name="password"]', form).errorInput();
                        } else if (needVcode && !value.vcode) {
                            msg = '验证码不能为空';
                            $('input[name="vcode"]', form).errorInput();
                        }
                        ;
                        if (msg) {
                            Alert(msg);
                        } else {
                            value.account = value.account.toLowerCase();
                            var account = value.account;
                            rpcJSON('signIn', value, function (backData) {
                                if ($('input[name="autoSignin"]', form).attr('checked')) {
                                    $.cookie('autoSignin', account, 365);
                                } else {
                                    $.cookie('autoSignin', null);
                                }
                                ;
                                $.cookie('needVcode', null);
                                Tips('success', '登录成功，正在为您跳转', 1500, onSucess);
                            }, function (msg) {
                                $('div[role="vcodeBox"]', container).show();
                                needVcode = true;
                                $.cookie('needVcode', '1', 365);
                                if (msg == 'vcode') {
                                    Alert('验证码错误！');
                                    $('input[name="vcode"]', form).errorInput();
                                } else if (msg == 'activation') {
                                    Confirm('您的账号尚未激活，前往激活', function () {
                                        window.location.href = 'http://tuweia.cn/c/home/a/activation';
                                    });
                                }
                                else {
                                    Alert(msg);
                                }
                                ;
                                $('input[name="vcode"]', form).val('');
                                changeVcode();
                            });
                        }
                        ;
                        return false;
                    };
            $('input').fancyInput();
            $.cookie('php_signinBack', null);
            form.submit(formSubmit);
            container.delegate('a[role]', click, function (e) {
                e.preventDefault();
                switch ($(this).attr('role')) {
                    case 'submitBtn':
                        formSubmit();
                        break;

                    case 'changeVcode':
                        changeVcode();
                        break;
                }
            });

            $.cookie('signinBack', signinBack);
            if (remberAccount && remberPwd) {
                $('input[name="account"]', form).val(remberAccount);
                $('input[name="password"]', form).val(remberPassword);
                $('input[name="remberPwd"]', form).attr('checked', true);
            }
            ;

            if (needVcode) {
                changeVcode();
                $('div[role="vcodeBox"]', container).show();
            }
            ;
            $('.openNav').click(function () {
                $('.navBox').toggleClass('active');
            });
        })(jQuery);
    </script>
    <script type="text/javascript">
        ;
        (function ($) {
            //setPhoneDropMenu('body', 'phone_active');
            $('.openNav').click(function () {
                $('.navBox').toggleClass('active');
            });

        })(jQuery);
        if ($.browser.msie && $.browser.version < 10) {
            $('<div style="padding:10px;">' + lowBrowserHtml + '</div>').prependTo('body');
        }
        ;
    </script>
    <iframe src="http://tuweia.cn/homecache.html" style="display: none;"></iframe>
</body>
</html>
